import { lazy } from 'react';
import webConfig from './web';
import interviewConfig from './interview';
import dailyConfig from './daily';
import computerBaseConfig from './computerBase';
import frameConfig from './frame';
import nodeConfig from './Node'
export default [
    ...webConfig,
    ...interviewConfig,
    ...dailyConfig,
    ...computerBaseConfig,
    ...frameConfig,
    ...nodeConfig,

    {
        path: '/test',
        exact: true,
        component: lazy(() => import('pages/test')),
    },
    {
        path: '/home',
        component: lazy(() => import('pages/Home')),
    },
    {
        path: '/hooks',
        component: lazy(() => import('pages/Home')),
        children: [
            {
                path: window.location.pathname,
                component: lazy(() => import(`hooks/${window.location.pathname.split('/')[2]}/demo.tsx`)),
            },
        ],
    },
];
